package com.data.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.data.entity.RoleMenu;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @描述 <>
 * @参数 $params$
 * @返回值 $return$
 * @创建人 WangGuanghua
 * @创建时间 $date$
 */
@Mapper
public interface RoleMenuMapper extends BaseMapper<RoleMenu> {

    @Insert("<script>" +
            "insert into t_role_menu (role_id,menu_id) " +
            "VALUES " +
            "(#{relRoleMenu.roleId},#{relRoleMenu.menuId})" +
            "</script>")
    int add(@Param("relRoleMenu") RoleMenu relRoleMenu);
}
